<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <title>美业红</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1">
        <link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
        <link href="/public/css/main.css" rel="stylesheet">
        <script type='text/javascript' src='/public/js/jquery-3.1.1.min.js'></script>
        <script type="text/javascript" src='/public/js/jquery.validate.js'></script>
        <script>
            var _hmt = _hmt || [];
            (function () {
                var hm = document.createElement("script");
                hm.src = "//hm.baidu.com/hm.js?8d43b5b5d798921b66d689f7a792e6e2";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
        </script>
        <script type="text/javascript">
            document.domain = '<?php echo _DOMAIN_ALL_;?>';
        </script>
        <link rel="shortcut icon" type="image/ico" href="/favicon.ico">
    </head>
    <body style="background-color: #f4f4f4;">
        <div class="navigation">
            <div class='navlogo'>
            <img class='_navlogo' src="/public/images/logo.png">
            </div>
            <div class='navson'>
                <ul class='fr'>
                <li><a href="/" class='anchor'><b>主页</b></a></li>
                <li><a href="/" class='anchor'><b>关于我们</b></a></li>
                <li><a href="/" class='anchor'><b>入驻优势</b></a></li>
                <li><a href="/" class='anchor'><b>商家合作</b></a></li>
                <li><a href="/" class='anchor'><b>合作展示</b></a></li>
                <li><a href="/" class='anchor'><b>联系我们</b></a></li>
                <li><a href="/home/store" class='anchor'><b>商家后台</b></a></li>
                </ul>
            </div>
            </div> 
<link href="/public/css/main.css" rel="stylesheet">
<div class="_main">
    <div class="login_div">
        <form  action='/home/passport/subregister' method="post" id='register_form'>
        	<div class='form-group row'>
                <label for="exampleInputName2">公司名称:</label>
                <input type="text" class="form-control" id='store_name' name='store_name' placeholder="请输入公司名称" value=""  />
            	<span id='check_store' style='color:red'> </span>
            </div>
            <div class='form-group row'>
                <label for="exampleInputName2">真实姓名:</label>
                <input type="text" class="form-control" id='name' name='name' placeholder="请输入姓名" value=""  />
            	<span id='check_name' style='color:red'> </span>
            </div>
            <div class='form-group row'>
                <label for="exampleInputName2">账号(手机号):</label>
                <input type="text" class="form-control" name="mobile" id='mobile' placeholder="请输入手机号码" value=""  />
            	<span id='check_mobile' style='color:red'> </span>
            </div>
         
            <div class="form-group login_sub">
                <input type="button" class="btn btn-info" name="" id='_submit' value="提交">
            </div>
        </form>
    </div>  
</div>
<script type='text/javascript'>
$(document).ready(function(){
    $('#_submit').click(function(){
        var mobile = $("#mobile").val();
        var name=$('#name').val();
        var store_name=$('#store_name').val();
        var reg=/^(((1[1-9]{1}[0-9]{1})|(15[0-9]{1}))+\d{8})$/;
        if(store_name==''){
            $('#check_store').html('请输入门店/公司名称');
            return;
        }
        if(name==''){
            $('#check_name').html('请输入姓名');
            return;
        }
        if(!reg.test(mobile)){
            $('#check_mobile').html('请正确输入联系方式');
            return;
        }
        $.ajax({
            url: "/home/passport/apply_submit?name=" + name + "&mobile=" + mobile + "&store_name=" + store_name, 
            async: true, 
            success: function (msg){
                if(msg==true){
                    alert('您的信息我们已经收到，我们会尽快和您联系！');
                    history.go(-1);
                }else{
                    alert('信息有误！请您正确填写信息。');
                }
            }
        });
    });
    
})



</script>
<div class="newfooter">
         ©2015-2017 All Rights Reserved ( 京ICP备15010043号 ) 
</div>
</body>
<script type="text/javascript" src='/public/js/top.js'></script>
</html>